<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2021/5/20
  Time: 21:22
  To change this telate use File | Settings | File Telates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="/emp/updateEmp" method="post">
    <input type="hidden" name="eno" value="${emp.eno}">
    用户名:<input type="text" name="ename" value="${emp.ename}"> <br>
    性别:
    <input type="radio" name="esex" value="男" <c:if test="${emp.esex=='男'}">checked</c:if> /> 男
    <input type="radio" name="esex" value="女" <c:if test="${emp.esex=='女'}">checked</c:if> />  女

    <br>
    工资:<input type="number" name="salary" value="${emp.salary}"><br>
    密码:<input type="password" name="pwd" value="${emp.pwd}"><br>
    部门编号:
    <select name="dno" id="dno">
        <c:forEach items="${deptList}" var="d">
            <option value="${d.dno}" <c:if test="${d.dno==emp.dno}" >selected</c:if> >${d.dname}</option>
        </c:forEach>
    </select>
    <br>
    出生日期:<input type="date" name="bornDate" value="<fm:formatDate value="${emp.bornDate}" pattern="yyyy-MM-dd"/>"><br>
    <input type="submit"><br>
</form>
</body>
</html>
